package com.spring.student.register;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Register {
    public static void main(String[] args) {

        ClassPathXmlApplicationContext classPathXml = new ClassPathXmlApplicationContext("register.xml");
        User user = (User) classPathXml.getBean("user");
        System.out.println(user);
        ((AbstractApplicationContext)classPathXml).close();
    }
}
